/*
    nspire-gamekit - a simple homebrew game framework
    Copyright (C) 2011  Daniel Tang

    This program is gameAutoFree software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the gameAutoFree Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#include "types/ngk.h"

NGKSize NGKSizeMake(NGKDimInt w, NGKDimInt h) {
    NGKSize ret;
    ret.width = w;
    ret.height = h;
    return ret;
}

NGKPoint NGKPointMake(NGKPosInt x, NGKPosInt y) {
    NGKPoint ret;
    ret.x = x;
    ret.y = y;
    return ret;
}

NGKRect NGKRectMake(NGKPosInt x, NGKPosInt y, NGKDimInt w, NGKDimInt h) {
    NGKRect ret;
    ret.size = NGKSizeMake(w, h);
    ret.position = NGKPointMake(x, y);
    return ret;
}